replaceSystemWindowInsets

@NonNull
open fun replaceSystemWindowInsets(left: Int, top: Int, right: Int, bottom: Int): @NonNull WindowInsetsCompat(source)

Returns a copy of this WindowInsets with selected system window insets replaced with new values.

When running on platforms with API 19 and below, this method always returns null.

Return

A modified copy of this WindowInsets

Parameters

left

New left inset in pixels

top

New top inset in pixels

right

New right inset in pixels

bottom

New bottom inset in pixels


@NonNull
open fun replaceSystemWindowInsets(@NonNull systemWindowInsets: @NonNull Rect): @NonNull WindowInsetsCompat(source)

Returns a copy of this WindowInsets with selected system window insets replaced with new values.

When running on platforms with API 19 and below, this method always returns null.

Return

A modified copy of this WindowInsets

Parameters

systemWindowInsets

New system window insets. Each field is the inset in pixels for that edge